package com.ttwm.service;

import com.ttwm.dao.OrderFoodDao;
import com.ttwm.pojo.Order;
import com.ttwm.pojo.OrderFood;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderFoodServiceImp implements OrderFoodService {
    @Autowired
    private OrderFoodDao orderFoodDao;


    @Override
    public int insetOrderFood(OrderFood orderFood) {
        return orderFoodDao.insetOrderFood(orderFood);
    }

    @Override
    public int deleteOrderFood(OrderFood orderFood) {
        return orderFoodDao.deleteOrderFood(orderFood);
    }

    @Override
    public int updateSumTotal(OrderFood orderFood) {
        return orderFoodDao.updateSumTotal(orderFood);
    }


}
